// 引入
import Vue from "vue";
import App from "./App.vue";
import iView from "iview";
import "iview/dist/styles/iview.css"; // 使用 CSS
//引入VueRouter
import VueRouter from "vue-router";
//引入路由器
import router from "./router";
// 引入canvas绘图库
import VueKonva from "vue-konva";

// 使用插件
Vue.use(iView);
Vue.use(VueRouter);
Vue.use(VueKonva, { prefix: "Konva" });

// 引入store
import store from "./store";
Vue.config.productionTip = false;

new Vue({
  render: (h) => h(App),
  router: router,
  store,
  //全局事件总线$bus配置
  beforeCreate() {
    Vue.prototype.$bus = this;
    // Vue.prototype.$API = API;
  },
}).$mount("#app");
